package com.ebupt.migu.music.label.entity;

/**
 * @description: 对外接口统一返回码
 * @author: liuyangyang@ebupt.com
 * @date: 2021/8/13 15:23
 */
public enum LabelCustomerResponseCodeEnum {

    /**
     * 成功
     */
    SUCCESS("0000", "成功"),
    /**
     * 访问参数错误
     */
    PARAM_ERR("1001", "参数错误"),
    /**
     * 客群不存在
     */
    CUSTOMER_NOT_EXIST("2001", "客群不存在"),

    /**
     * 文件同步至统一标签服务平台失败
     */
    FILE_TRANS_FAIL("3001", "文件同步至统一标签服务平台失败"),

    /**
     * musicRule接口访问异常
     */
    CUSTOMER_RULE_REQUEST_ERROR("3002", "/customer/nf/musicRule接口访问异常"),

    /**
     * 系统错误
     */
    SYSTEM_ERR("9999", "系统错误");

    /**
     * 返回码
     */
    private String code;
    /**
     * 返回信息
     */
    private String msg;

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    LabelCustomerResponseCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
